-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(job): add changePriority method #1901
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I guess we need some piece of documentation on how to use this method and also explaning that it can only be used when the job is waiting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few grammar issues
docs/gitbook/guide/jobs/delayed.md
Outdated
``` | ||
|
||
{% hint style="warning" %} | ||
Take in count that your job must be in delayed state when you change the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in -> into
|
||
## Change priority | ||
|
||
If you want to change the priority after inserting a job, just use **changePriority** method. For example, let's say you want to change the priority from 16 to 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> just use the changePriority method.
-> let's say that you want to change...
ref #1899